
$script_root_dir = $PSScriptRoot
# 获取当前脚本的目录，然后拼接出init_env_environment_variable_1.ps1的完整命令，执行，完成环境变量的初始化
$env_var_script = Join-Path -Path $script_root_dir -ChildPath "init_env_environment_variable_1.ps1"

Write-Host "env_var_script: $env_var_script"

Invoke-Expression $env_var_script

Write-Host "1. Project Directory: $project_dir"
Write-Host "2. Python Version: $python_ver"

pyenv local $python_ver

$pyexe=(pyenv which python)

& $pyexe -m venv .venv

. .\.venv\Scripts\Activate.ps1

python -m pip install --upgrade pip
python -m pip install loguru setuptools wheel

python -m pip install tox
python -m pip install windows-curses  
